package com.seal.dao.impl;

import org.springframework.stereotype.Repository;

import com.seal.dao.BaseDaoImpl;
import com.seal.dao.IForgotPwdDao;
import com.seal.model.ForgotPwd;

@Repository("forgotPwdDaoImpl")
public class ForgotPwdDaoImpl extends BaseDaoImpl implements IForgotPwdDao {

	public void addForgotPwd(ForgotPwd ca) throws Exception {
		this.save(ca);
	}

	public ForgotPwd getForgotPwdById(String activeCode) throws Exception {
		return (ForgotPwd) this.select(ForgotPwd.class, activeCode);
	}

	public void updateForgotPwd(ForgotPwd ca) throws Exception {
		this.update(ca);
	}
}
